package com.ruoyi.erp.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 提成比例配置对象 project_bonus_config
 * 
 * @author sauger
 * @date 2022-04-22
 */
public class ProjectBonusConfig extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    @Excel(name = "ID")
    private Long id;

    /** 毛利上限(含) */
    @Excel(name = "毛利上限(含)")
    private BigDecimal maxRate;

    /** 提成比例 */
    @Excel(name = "提成比例")
    private BigDecimal bonusRate;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setMaxRate(BigDecimal maxRate) 
    {
        this.maxRate = maxRate;
    }

    public BigDecimal getMaxRate() 
    {
        return maxRate;
    }
    public void setBonusRate(BigDecimal bonusRate) 
    {
        this.bonusRate = bonusRate;
    }

    public BigDecimal getBonusRate() 
    {
        return bonusRate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("maxRate", getMaxRate())
            .append("bonusRate", getBonusRate())
            .toString();
    }
}
